from django.db import models

# Create your models here.
class JosContactDetails(models.Model):
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=255)
    alias = models.CharField(max_length=255)
    con_position = models.CharField(max_length=255, blank=True)
    address = models.TextField(blank=True)
    suburb = models.CharField(max_length=100, blank=True)
    state = models.CharField(max_length=100, blank=True)
    country = models.CharField(max_length=100, blank=True)
    postcode = models.CharField(max_length=100, blank=True)
    telephone = models.CharField(max_length=255, blank=True)
    fax = models.CharField(max_length=255, blank=True)
    misc = models.TextField(blank=True)
    image = models.CharField(max_length=255, blank=True)
    imagepos = models.CharField(max_length=20, blank=True)
    email_to = models.CharField(max_length=255, blank=True)
    default_con = models.IntegerField()
    published = models.IntegerField()
    checked_out = models.IntegerField()
    checked_out_time = models.DateTimeField()
    ordering = models.IntegerField()
    params = models.TextField()
    user_id = models.IntegerField()
    catid = models.IntegerField()
    access = models.IntegerField()
    mobile = models.CharField(max_length=255)
    webpage = models.CharField(max_length=255)
    class Meta:
        db_table = u'jos_contact_details'

